use std::time::{SystemTime, UNIX_EPOCH};

pub fn current_timestamp() -> usize {
    let now = SystemTime::now();
    let since_epoch = now.duration_since(UNIX_EPOCH).expect("Time went backwards");
    since_epoch.as_millis() as usize
}